package vo;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JDesktopPane;

@SuppressWarnings("serial")
class BackgroundedDesktopPane extends JDesktopPane {
	Image img;

	public BackgroundedDesktopPane() {
		try {
			// img = javax.imageio.ImageIO.read(new
			// File("./assets/FundoSorvete.jpg"));
		} catch (Exception e) {
		}
	}

	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		if (img != null)
			g.drawImage(img, 0, 0, this.getWidth(), this.getHeight(), this);
	}
}
